<!--{include file="oui/public/header.html"}-->
<!--{include file="oui/public/navibar.html"}-->
<!--{include file="oui/public/sidebar.html"}-->
<div class="header">
    <div class="stats">
        <p class="stat"><!--旁注--></p>
    </div>
    <h1 class="page-title">新闻管理</h1>
</div>
<!--优雅的分隔线-->
<ul class="breadcrumb">
    <li><a href="#">控制面板</a><span class="divider">/</span></li>
    <li class="active">新闻管理</li>
</ul>
<!--优雅的分隔线-->
<div class="container-fluid">
<div class="row-fluid">
    <div class="btn-toolbar"  style="margin-bottom:2px;">
        <a href="./?application=admin&controller=news&method=add" class="btn btn-primary">
            <i class="icon-plus"></i> 发布新闻
        </a>
        <a data-toggle="collapse" data-target="#search"  href="#" title= "检索" style="display:none;">
            <button class="btn btn-primary" style="margin-left:5px"><i class="icon-search"></i></button>
        </a>
    </div>
    <!--优雅的分隔线-->
    <div id="search" class="collapse out">
        <form class="form_search"  action="" method="GET" style="margin-bottom:0px">
            <div style="float:left;margin-right:5px">
                <label>选择菜单模块</label>
                <select name="module_id" class="input-xlarge" id="DropDownTimezone">
                    <option value="0" class="input-xlarge option" id="DropDownTimezone-0">全部</option>
                    <option value="1" class="input-xlarge option" id="DropDownTimezone-1">控制面板</option>
                    <option value="2" class="input-xlarge option" id="DropDownTimezone-2">样例模块</option>
                    <option value="4" class="input-xlarge option" id="DropDownTimezone-3">新闻管理</option>
                    <option value="5" class="input-xlarge option" id="DropDownTimezone-4">产品管理</option>
                    <option value="6" class="input-xlarge option" id="DropDownTimezone-5">ddddd</option>
                </select>
            </div>
            <div style="float:left;margin-right:5px">
                <label>查询所有请留空</label>
                <input type="text" name="menu_name" value="" placeholder="输入菜单名称" >
                <input type="hidden" name="search" value="1" >
            </div>
            <div class="btn-toolbar" style="padding-top:25px;padding-bottom:0px;margin-bottom:0px">
                <button type="submit" class="btn btn-primary">检索</button>
            </div>
            <div style="clear:both;"></div>
        </form>
    </div>
    <!--优雅的分隔线-->
    <div class="block"> <a href="#page-stats" class="block-heading" data-toggle="collapse">新闻列表</a>
        <div id="page-stats" class="block-body collapse in">
            <table class="table table-striped">
                <thead>
                    <tr>
                    <th width="30">序号</th>
                    <th>标题</th>
                    <th width="100">发布日期</th>
                    <th width="75">操作选项</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                    <td><!--{$smarty.foreach.NewsList.index+1}--></td>
                    <td><!--{$Row.Title|truncate_utf8:55:".."}--></td>
                    <td><!--{$Row.Datetime|date_format:"%Y-%m-%d"}--></td>
                    <td><a href="./?application=admin&controller=news&method=edit&id=<!--{$Row.ID}-->" title= "修改" ><i class="icon-pencil"></i></a> &nbsp;
                    <a data-toggle="modal" href="#myModal"  title= "删除" >
                    <i app-function="delete-confirm" class="icon-remove" href="#" data-toggle="modal" ></i></a></td>
                    </tr>
                </tbody>
            </table>
            <!--优雅的分隔线-->
            <div class="pagination">
                <ul>
                    <li><a href="./?application=admin&controller=news&page=<!--{$Data['CurrentPage']-1}-->"> 上一页 </a></li>
                    <li><span>1<!--{$smarty.section.Page.index}--></span></li>
                    <li><a href="./?application=admin&controller=news&page=<!--{$Data['CurrentPage']+1}-->"> 下一页 </a></li>
                </ul>
            </div>
        </div>
    </div>
<script type="text/javascript" src="<!--{$smarty.const.APP_PATH}-->/view/public/scripts/common.list-delete-event.js"></script>
<!--{include file="oui/public/footer.html"}-->